package com.hd.platform.util;

/**
 * Created by1 qingshengzheng on 16/5/12.
 */
public class PhotoPathUtil {
    private static String style_db160 = "@0o_0l_160w_90q.jpg";
    private static String style_345w375l = "@1e_1c_0o_0l_375h_345w_90q.jpg";
    private static String style_670w440l = "@1e_1c_0o_0l_440h_670w_90q.jpg";


    private static String heaer_100w100h="@1e_1c_0o_0l_100sh_100h_100w_100q.src";

    //private static String card_400w300h="@1e_1c_0o_0l_300h_400w_90q.jpg";
    private static String card_400w300h="@1e_1c_0o_0l_100sh_444h_700w_100q.src";
    private static String store_400w300h="@1e_1c_0o_0l_100sh_444h_700w_100q.src";

    private static String meiji_150w150h="@1e_1c_0o_0l_150h_150w_90q.src";

    /**
     *
     * @param url
     * @return
     */
   public static String getHeader50w50h(String url)
   {
       if(url.indexOf("http://xfile.xinghou.com")>=0)
       return url + heaer_100w100h;
       else
           return url;
   }
    public static String getCard400w300h(String url)
    {
        return url+card_400w300h;
    }
    public static String getStore400w300h(String url)
    {
        return url+store_400w300h;
    }



    public static String getDB160(String url) {
        return url + style_db160;
    }

    public static String getStyle_345w375l(String url) {
        return url + style_345w375l;
    }


    public static String getStyle_670w440l(String url) {
        return url + style_670w440l;
    }

    public static String getMeiji150w150h(String url)
    {
        return url+meiji_150w150h;
    }
}
